package com.bit.java;

public class Test4 {
    public static void print(int n) {
        if(n > 10) {
            print(n / 10);
        }
        System.out.print(n % 10 + " ");
    }

    public static void main(String[] args) {
        int n = 1234;
        print(n);
    }
}
